﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using DreamCube.Framework.Utilities.Office;

public partial class TestOffice_testword : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        MyWord word = new MyWord(@"d:\1.doc");
        //word.SetBookMarkValue("test", "<strong>1234567890</strong>", MyWord.InsertValueType.RichText);
        word.RemoveAllEmptyPage();
        word.Save();
        Response.Write("写入完毕");
    }
}